package com.gongyou.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author LiQuanPing
 * @Date 2021-03-24 17:28
 * @Version 1.8
 * @creed: ♂♂Talk is cheap,show me the code♀♀
 */
public class DateUtils {
    //毫秒转字符串
    public static String mill2String(String time) {
        long millisecond = Long.parseLong(time);
        Date date = new Date(millisecond);
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
       // SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日 hh:mm:ss SSS a");
      //  System.out.println("毫秒[1483159625851]对应日期时间字符串：" + format.format(date));
        return  format.format(date);
    }




}
